REM JianPF 2022年09月2日
REM 直播姬录屏流格式转MP4格式到Pr剪辑
REM 需要把ffmpeg.exe给到全局路径path上
REM 在流格式的目录地址栏上输入cmd并执行ffmp4.cmd
REM 选择转码线程数量1-20,给满就好
REM 就能在目录下创建MP4目录是转码好的文件夹
REM ffmpeg-4.3-win64-static版本下载地址
REM https://down1.downbank.cn:8011/soft/downbankffmpeg.rar?key=aba2bc25832d1761a8f16a3d0bee7772&uskey=a61ea54358ce40712341cbd0173bd7899541dbaf
REM https://github.com/bitn 选择win64-gpl.zip的下载

REM out put *.mp4 to a.txt
dir /s/b *.mp4>a.txt

REM set ffmpeg -rhreads number
set /p set_threads="ffmpeg -threads [1-20]"

REM Make folder mp4 
md mp4

REM read a.txt and %%~nxiii.mp4 not folder for call forffmpeg function
for /f %%i in (a.txt) do call :forFfmpeg %%~nxi
exit /b 0


:forFfmpeg
ffmpeg -i "%1" -f mp4 -threads %set_threads% ".\mp4\%1"
exit /b 0
